<?php

namespace App\Http\Controllers;

use App\Admin_role;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use illuminate\support\facades\Route;
class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;



    function __construct() {
        defined('APP_NAME') or define('APP_NAME',env('APP_NAME'));//项目名称 以此来分区域存储Redis数据
       // defined('ROOT') or define('ROOT',env('ROOT'));//root账号 免权限校验




        view()->share(['version' => env('VERSION')]);

        if(method_exists($this,'_initialize')){
            $this->_initialize();
        }
    }

}
